//package com.zhutf.RentalCar.Utils;
//
//import java.sql.SQLException;
//import java.util.Map;
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//
//import org.junit.After;
//import org.junit.Before;
//import org.junit.Test;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//
//import com.qunar.wireless.ugc.business.cms.POI.CMSHotFoodSightBusiness;
//
//public class TT {
//
//	private CMSHotFoodSightBusiness cmsHotFoodSightBusiness;
//	
//	@Before
//	public void before(){
//		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//		cmsHotFoodSightBusiness= (CMSHotFoodSightBusiness) context.getBean("cmsHotFoodSightBusiness");
//	}
//	
//	@After
//	public void after(){
//		System.out.println("++++++++++++++++++++++++++++");
//	}
//	
//	@Test
//	public void test() throws SQLException, Exception{
//		Th th = new Th(cmsHotFoodSightBusiness);
//		Thread tx;
//		ExecutorService pool = Executors.newFixedThreadPool(20);
//		for(int i = 0; i < 20; i++){
//			tx = new Thread(th);
//			tx.setName("Thread-"+i);
//			pool.execute(tx);
//		}
//	} 
//	
//}
//
//class Th implements Runnable{
//	private CMSHotFoodSightBusiness cmsHotFoodSightBusiness;
//	public Th(CMSHotFoodSightBusiness cmsHotFoodSightBusiness){
//		this.cmsHotFoodSightBusiness = cmsHotFoodSightBusiness;
//	}
//	
//	@Override
//	public void run() {
//		Map<String, Object> tt;
//		try {
//			System.out.println(Thread.currentThread().getName());
//			tt = cmsHotFoodSightBusiness.getPojoListAndTotalNumByIndex(
//					 "澶╁畨闂�,"31","328", "-999", "1", 
//					"30");
//			System.out.println(tt);
//		} catch (SQLException e) {
//			e.printStackTrace();
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//	}
//	
//}